package org.bbl.db.mybatis.mapper;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.session.RowBounds;
import org.bbl.db.mybatis.mysql.DynamicSqlSelectProvider;

import java.util.List;
import java.util.Map;

/**
 * @author biniamg
 * @since 10/31/12
 */
public interface MapMapper {

    @SelectProvider(type = DynamicSqlSelectProvider.class, method = "doReadQuery")
    List<Map<String, Object>> doReadQuery(Map<String, Object> param, RowBounds rowBounds);


    @InsertProvider(type = DynamicSqlSelectProvider.class, method = "doWriteQuery")
    void doWriteQuery(@Param("query") String query);
}
